home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 January / cd joystick 67 No9.iso / mac / Jeux & démos / Niveaux supplémentaires / DOOM / ANUBIS / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-11-19  |  6KB  |  241 lines

  1. @echo OFF
  2. cls
  3. echo.
  4. echo.           *=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
  5. echo.           \    I, ANUBIS Doom2 Conversion   /
  6. echo.           \                                 /
  7. echo.           \         by Glen Payne           /
  8. echo.           \      and Marshal Bostwick       /
  9. echo.           *=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
  10. echo.
  11. echo.        ...Full props to the AliensTC gang for the inspiration
  12. echo.        and to Olivier Montanuy for the installation batch guidelines,
  13. echo.        from which this install is shamelessly plagiarized.
  14. echo.
  15. echo.        ************ Good News *************
  16. echo.        You won't need to uninstall I, ANUBIS
  17. echo.        (Your regular DOOM2 game won't be messed with)
  18. echo.        For convenience, I've included both DEHACKED by Greg Lewis and    
  19. echo.        DEUSF by Olivier Montanuy. 
  20. echo.
  21. echo.        ************ Bad News ****************
  22. echo.        Installation still requires about 2.5 additional megs
  23. echo.        for the new sprites, monsters, etc...
  24. pause
  25.  
  26. echo.
  27. echo.
  28. echo.
  29. echo.
  30. echo.
  31. echo.
  32. echo.
  33. echo.
  34. echo.
  35. echo.
  36. echo.
  37. echo.
  38. echo.
  39. echo.
  40. echo.
  41. echo This batch is for Registered version:
  42. echo.   *** DOOM II ver. 1.9 ***
  43. echo. hit CTRL-C now  if this is incorrect.
  44. echo.
  45. echo. Warning: The dehacked patch may not work with
  46. echo. DOOM II versions previous to 1.9
  47. echo. Warning: for DOOM II versions previous to 1.9
  48. echo. you might need a proper dehacked.ini file.
  49. pause
  50.  
  51. rem
  52. rem Check the DOOM2 files
  53. rem
  54. echo. DOOM2.EXE and DOOM2.WAD must be in that directory
  55. if not exist DOOM2.EXE goto fail
  56. if not exist DOOM2.WAD goto fail
  57. goto checkthem
  58. rem
  59.  
  60. :fail
  61. echo.
  62. echo. ERROR:
  63. echo.   Can't Find DOOM II files DOOM2.WAD or DOOM2.EXE
  64. echo.   please move all I, ANUBIS files to your Doom2 directory. 
  65. pause
  66. exit
  67.  
  68. rem
  69. rem Check the archive contents
  70. rem 
  71.  
  72. :checkthem
  73. echo Checking anub_tex.WAD
  74. if not exist anub_tex.WAD goto missfile
  75. echo Checking anub_gra.WAD
  76. if not exist anub_gra.WAD goto missfile
  77. echo Checking anub_spr.WAD
  78. if not exist anub_spr.WAD goto missfile
  79. echo Checking anub_lev.WAD
  80. if not exist anub_lev.WAD goto missfile
  81. echo Checking DEHACKED.EXE
  82. if not exist DEHACKED.EXE goto missfile
  83. echo Checking anub_8.DEH
  84. if not exist anub_8.DEH goto missfile
  85. echo Checking DEUSF.EXE
  86. if not exist DEUSF.EXE goto missfile
  87. echo Checking ANUBIS.BAT
  88. if not exist ANUBIS.BAT goto missfile
  89. goto checkok
  90. rem
  91. rem
  92.  
  93. :missfile
  94. echo.
  95. echo. ERROR: Can't find that file.  It's not in your Doom2 directory.
  96. echo.  It should have been included in the zip file you acquired.
  97. echo. You can find Dehacked at FTP.CDROM.COM in /pub/doom2/exe_edit/,
  98. echo. 
  99. echo. . . .and DeuSF at the same place in /pub/doom2/graphics_edit/.
  100. echo.    However, for the moment I've included both in this archive.
  101. pause
  102. exit
  103.  
  104. rem
  105. rem Check if dehacked.ini exists, and complain
  106. rem 
  107.  
  108. :checkok
  109. if not exist DEHACKED.INI goto saveexe
  110. echo.
  111. echo. WARNING: 
  112. echo. A dehacked.ini file exists here. That could compromise this 
  113. echo. installation if you have a DOOM II version previous to 1.9.
  114. echo. Please hit CTRL-C and delete or rename dehacked.ini if you're not
  115. echo. sure you really need it.
  116. echo.
  117. echo. If you use a DOOM II version previous to 1.9, you might
  118. echo. need a dehacked.ini file so that dehacked can locate 
  119. echo. the object and frame table in your executable.
  120. echo. However, the dehacked patch may not work.  We can't test everything... 
  121. pause
  122. goto saveexe
  123.  
  124. rem
  125. rem Save executable only if doomhack.EXE does not 
  126. rem already exist to prevent overwriting.
  127. rem
  128.  
  129. :saveexe
  130. echo.
  131. echo.
  132. echo.
  133. echo.
  134. echo.
  135. echo.
  136. echo.
  137. echo.
  138. echo.
  139. echo.
  140. echo.
  141. echo. Saving DOOM2.EXE as doomhack.EXE
  142. echo. This uses about 700K of disk space
  143. echo. (doomhack.EXE is not overwritten if it already exists).
  144. echo.
  145. if not exist doomhack.exe copy DOOM2.EXE doomhack.exe
  146.  
  147. rem
  148. rem APPLY DEHACKED
  149. rem
  150. echo Applying Dehacked patch for DOOM II version 1.9
  151. echo for earlier versions of DOOM2, you might need another
  152. echo Dehacked patch or a proper dehacked.ini.   Sorry.
  153. pause
  154. dehacked -load anub_8.DEH
  155. if ERRORLEVEL 0             goto rename
  156. echo. *********
  157. echo. * ERROR *
  158. echo. *********
  159. echo. An error occured while applying Dehacked.
  160. echo.  Did you use the right DOOM II version?
  161. echo. 
  162. echo. restoring DOOM2.EXE from doomhack.EXE...
  163. copy  doomhack.EXE DOOM2.EXE
  164. echo.  Installation was unsuccessful...Check your doom2 version.
  165. pause
  166. exit
  167.  
  168. rem
  169. rem Renaming executable
  170. rem
  171.  
  172. :rename
  173. cls
  174. echo.
  175. echo Changing DOOM2.EXE to IANUBIS.EXE...
  176. if exist IANUBIS.EXE del IANUBIS.EXE
  177. ren DOOMHACK.EXE IANUBIS.EXE
  178. rem
  179. echo.
  180. echo. Modified DOOM2.EXE is now IANUBIS.EXE
  181. echo. Original DOOM2.EXE has not been modified.
  182. echo.  (In other words, you've still got your original doom2.exe UNCHANGED)
  183. pause
  184.  
  185. rem
  186. rem  APPLY DEUSF
  187. rem
  188. rem deusf.exe defaults to doom.wad: avoid this
  189. rem
  190. if exist doom.wad ren doom.wad doom1.wad >nul
  191. echo.
  192. echo. We're about to create a new sprite PWAD with DeuSF
  193. echo. This requires about 2.5 more meg of disk space
  194. echo. and takes a minute or so.  Hit a key, then hang on....
  195. echo. 
  196. echo. 
  197. echo.
  198. pause >nul
  199. echo. Please wait.....
  200. DeuSF -sprites -app anub_spr.wad > anub_spr.log
  201. if ERRORLEVEL 0             goto restore
  202. echo.  *********
  203. echo.  * ERROR *
  204. echo.  *********
  205. echo. Installation was unsuccessful...
  206. echo. An error occured during sprite and flat generation.
  207. echo. Did you have enough disk space?
  208. pause
  209. exit
  210.  
  211. :restore
  212. rem
  213. rem Restoration
  214. rem
  215. echo. 
  216. echo. ************ INSTALL IS COMPLETE ***************
  217. echo.
  218. echo. If you want to redistribute the I, ANUBIS files
  219. echo  you will need to restore anub_spr.wad. 
  220. echo. To do that, type:  DeuSF -res anub_spr.wad
  221. echo.  (this is to avoid violating id's copyrights)
  222. echo.
  223. echo. Have fun with this version of I, ANUBIS....
  224. echo. If something goes wrong during the game, please report to Glen
  225. echo. Payne or Marshall Bostwick (glenifer@delphi.com or mab@pip.net).
  226. echo. Send also the log file and if possible a demo of the game that crashed 
  227. echo. (if it can be repeated).
  228. echo.
  229. echo. To play network games:
  230. echo.   Save doom2.exe somewhere safe and rename ianubis.exe to
  231. echo.   doom2.exe before using ipxsetup or your favourite shell.)
  232. echo. 
  233. echo. For a quick uninstall, just type "uninstal".
  234. echo. 
  235. echo. 
  236. echo. To play a single-player game now, type ANUBIS.
  237. echo. 
  238. echo.   
  239.  
  240.                                                 
  241.